package com.roast.util;

import java.io.Serializable;
import java.util.List;
import com.roast.domain.*;

@SuppressWarnings("serial")
public class EventSSO implements Serializable {

    private Event event;

    public Event getEvent() {
        return event;
    }

    public void setEvent(Event event) {
        this.event = event;
    }

    @Override
    public String toString() {
        return event.toString();
    }

    public long getEventID() {
        return getEvent().getEventID();
    }

    public long getMasterID() {
        return getEvent().getMaster().getId();
    }

    public long getStarID() {
        return getEvent().getStar().getId();
    }

    public String getMasterNickname() {
        return getEvent().getMaster().getNickname();
    }

    public String getMasterEmail() {
        return getEvent().getMaster().getEmail();
    }

    public String getStarNickname() {
        return getEvent().getStar().getNickname();
    }

    public String getStarEmail() {
        return getEvent().getStar().getEmail();
    }

    public String getParticipantsNicknames() {
        return getEvent().getParticipantsNicknames();
    }

    public String getForeword() {
        return getEvent().getForeword().getText();
    }

    public List<Address> getAddressList() {
        return getEvent().getAddressList();
    }

    public List<UserData> getParticipantsList() {
        return getEvent().getParticipantsList();
    }

    public void setParticipantsList(List<UserData> list) {
        getEvent().setParticipantsList(list);
    }

    public void setMaster(UserData master) {
        getEvent().setMaster(master);
    }

    public void setStar(UserData star) {
        getEvent().setStar(star);
    }

    public void setIsPrivate(boolean isPrivate) {
        getEvent().setIsPrivate(isPrivate);
    }

    public void setForeword(Text foreword) {
        getEvent().setForeword(foreword);
    }

    public void addParticipant(UserData user) {
        getEvent().getParticipantsList().add(user);
    }
}
